package com.allenkerr.client;


import com.allenkerr.vo.Result;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * Created by 小柯 on 17/7/21.
 */
@FeignClient(name = "test-patch", url = "http://localhost:6170")
public interface TestClient {

    /**
     * PATCH http://localhost:6170/admin_api/v1/mails/test/123
     */
    @RequestMapping(method = RequestMethod.PATCH, value = "/admin_api/v1/mails/test/{id}")
    Result test(@PathVariable("id") Integer id);

}
